#pragma config(Hubs,  S1, HTMotor,  HTServo,  none,     none)
#pragma config(Motor,  mtr_S1_C1_1,     1,            tmotorNormal, openLoop)
#pragma config(Motor,  mtr_S1_C1_2,     2,            tmotorNormal, openLoop) //Generated from the RobotC "Motors and Sensor Setup"


#include "JoystickDriver.c"  //Include file to "handle" the Bluetooth messages.


task main()
{
  while (true)
  {
  getJoystickSettings(joystick);
	motor[1]=joystick.joy1_y1; //sets motor "1" to the value of the left joystick

    	motor[2]=joystick.joy1_y2;//sets motor "2" to the value of the right joystick

   }
}
